package day0513;

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {

        /*int i=100;
        while(i<=999){
            int g=i/100%10, s=i/10%10, b=i/1%10;
            if( i == g*g*g + s*s*s + b*b*b){
                System.out.println(i);
            }
            i++;
        }*/
        /*int num=new Scanner(System.in).nextInt();
        for (int i = 1; i < num; i++) {
            if(num%i==0)
                System.out.println(i);

        }*/


        //输入一个数num1，打印num1的阶乘。

        //5的阶乘是：5*4*3*2*1=120
        int num1 = new Scanner(System.in).nextInt();
        int result = 1;
        for (    ; num1>0 ; num1--) {
            result = result*num1;
        }
        System.out.println(result);
    }
}
